package org.ccay.core.ioc;


/**
 * CcayApplicationContext 的实例持有者
 * 
 * @see {@link CcayApplicationContext}
 *  
 */
public final class Ccay {
	
	/** Ccay应用上下文 **/
	private static CcayApplicationContext CcayApplicationContext;
	
	/**
	 * 私有构造函数，防止外部初始化该类。
	 *
	 */
	private Ccay() {}   
	   
	/**
	 * 获取CcayApplicationContext(Spring ApplicationContext) 
	 * @return
	 */
	public static CcayApplicationContext getContext() {
		return CcayApplicationContext;
	}
	
	/**
	 * 设置CcayAppContext
	 * @param CcayAppContext
	 */
	public static void setContext(CcayApplicationContext CcayAppContext) {
		CcayApplicationContext = CcayAppContext;
	}

}
